package com.itheima.systemDemo;

public class SystemDemo1 {
    public static void main(String[] args) {
        int[] arr1 = {1,2,3,4,5,6,7,8,9,10};
        int[] arr2 = new int[10];

        System.arraycopy(arr1, 0, arr2, 0, 10);
        for (int j : arr2) {
            System.out.print(j + " ");
        }
    }
}
